﻿<%@ page language="java" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html slick-uniqueid="3">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta charset="utf-8">
    <meta name="baidu-site-verification" content="DLH0DxvBfi">
    <title>饰空间电商平台管理系统</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link href="" rel="Shortcut Icon">
    <link onerror="wx_loaderror(this)" rel="stylesheet" href="./files/page_login.css">
    <script type="text/javascript" src="/back/scripts/jquery.min.js"></script>
    <script type="text/javascript" src="/back/scripts/jquery.form.js"></script>
</head>
<body class="zh_CN" gtools_scp_screen_capture_injected="true" youdao="bind">
<div class="head" id="header">
    <div class="head_box">
        <div class="inner wrp">
            <h1 class="logo"><a href="javascript:void(0);" title="饰空间电商平台管理系统">饰空间电商平台管理系统</a></h1>

            <div class="account">

            </div>
        </div>
    </div>
    <div class="banner">
        <div class="inner wrp">
            <div class="login_frame">
                <h3>登录</h3>

                <div class="login_err_panel" style="display:none;" id="err"></div>
                <form action="/back/action.jsp" method="post" id="theform" name="theform">
                    <div class="login_input_panel" id="js_mainContent">
                        <div class="login_input"><i class="icon_login un"> </i>
                            <input type="text" placeholder="用户名" id="usern" name="usern">
                        </div>
                        <div class="login_input"><i class="icon_login pwd"> </i>
                            <input type="password" placeholder="密码" id="password" name="password">
                        </div>
                    </div>
                    <div class="login_btn_panel"><a class="btn_login" title="点击登录" href="javascript:" id="loginBt">登录</a></div>
                </form>
            </div>
        </div>
    </div>
</div>

<div class="foot" id="footer" style="background-color:#FFF; color:#777">
    <ul class="links ft">
        <li class="links_item">
            <p class="copyright">Copyright ©
                <script type="text/javascript">document.write((new Date()).getFullYear());</script>
                饰空间. All Rights Reserved.
            </p>
            <a href="javascript:void(0);" style="text-decoration:none;"></br></a>

        </li>
    </ul>
</div>
</body>
</html>
<script type="text/javascript">
    $("#password").keyup(function (event) {
        if (event.keyCode == 13) {
            $("#loginBt").trigger("click");
        }
    });
    jQuery(function () {
        jQuery("#usern").focus();
        jQuery("#loginBt").click(function () {
            jQuery("#theform").ajaxSubmit({
                type: "POST",
                success: function (data) {
                    if (jQuery.trim(data) == 'ok') {
                        window.location.href = '/backend/';
                    } else if (jQuery.trim(data) == 'state0') {
                        alert('您的帐户已被禁用，请您与管理员联系！');
                    } else {
                        alert('用户名或者密码不正确！');
                    }
                }
            });
        });
    });
</script>